package com.murray.shop.background.pojo;

import java.util.Date;

/**
 * @author Murray
 * @Date 2021/8/21
 * @Time 14:38
 * @Description 订单类
 */
public class Orders {

    private Integer orderId;
    private Users users;
    private OrderState orderState;
    private Address address;
    private float orderAmount;
    private float orderDiscount;
    private Date bestTime;
    private String consignee;
    private String mobile;
    private String shipWay;
    private String shippingName;
    private String payName;
    private float giftMoney;
    private Date addTime;


    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "orderId=" + orderId +
                ", orderState=" + orderState +
                ", address=" + address +
                ", orderAmount=" + orderAmount +
                ", orderDiscount=" + orderDiscount +
                ", bestTime=" + bestTime +
                ", consignee='" + consignee + '\'' +
                ", mobile='" + mobile + '\'' +
                ", shipWay='" + shipWay + '\'' +
                ", shippingName='" + shippingName + '\'' +
                ", payName='" + payName + '\'' +
                ", giftMoney=" + giftMoney +
                ", addTime=" + addTime +
                '}';
    }

    public Orders() {
    }

    public Orders(Integer orderId, Integer userId, OrderState orderState, Integer addressId, float orderAmount, float orderDiscount, Date bestTime, String consignee, String mobile, String shipWay, String shippingName, String payName, float giftMoney, Date addTime) {
        this.orderId = orderId;
        this.orderState = orderState;
        this.orderAmount = orderAmount;
        this.orderDiscount = orderDiscount;
        this.bestTime = bestTime;
        this.consignee = consignee;
        this.mobile = mobile;
        this.shipWay = shipWay;
        this.shippingName = shippingName;
        this.payName = payName;
        this.giftMoney = giftMoney;
        this.addTime = addTime;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }


    public OrderState getOrderState() {
        return orderState;
    }

    public void setOrderState(OrderState orderState) {
        this.orderState = orderState;
    }



    public float getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(float orderAmount) {
        this.orderAmount = orderAmount;
    }

    public float getOrderDiscount() {
        return orderDiscount;
    }

    public void setOrderDiscount(float orderDiscount) {
        this.orderDiscount = orderDiscount;
    }

    public Date getBestTime() {
        return bestTime;
    }

    public void setBestTime(Date bestTime) {
        this.bestTime = bestTime;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getShipWay() {
        return shipWay;
    }

    public void setShipWay(String shipWay) {
        this.shipWay = shipWay;
    }

    public String getShippingName() {
        return shippingName;
    }

    public void setShippingName(String shippingName) {
        this.shippingName = shippingName;
    }

    public String getPayName() {
        return payName;
    }

    public void setPayName(String payName) {
        this.payName = payName;
    }

    public float getGiftMoney() {
        return giftMoney;
    }

    public void setGiftMoney(float giftMoney) {
        this.giftMoney = giftMoney;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }
}